package com.yix.study.sso.security.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserController {

//    @RequestMapping("/index")
//    public String index() {
//        return "210918/user/index";
//    }
    @PreAuthorize("hasRole('User')")
    @RequestMapping("/index")
    public String index() {
        return "210919/user/index";
    }


}
